//
// Created by Administrator on 2018/11/21.
//

#ifndef VIDEODEMO_VIDEO_H
#define VIDEODEMO_VIDEO_H
extern "C"{
#include "libavcodec/avcodec.h"
#include "libavutil/frame.h"
}

#include <android/log.h>


#define INBUF_SIZE 4096
#define LOGE(FORMAT,...) __android_log_print(ANDROID_LOG_ERROR,"nativeLog",FORMAT,##__VA_ARGS__);


int init();

void pgm_save(unsigned char *buf, int wrap, int xsize, int ysize,
              char *filename);
void decode(AVCodecContext *context,AVFrame * frame,AVPacket *pkt,char *filename);

int read(char *filename,char *outfilename);

#endif //VIDEODEMO_VIDEO_H
